<div class="page-content">
    <!--pages/order/index.wxml-->

<div class="tab">
 <div data-order="MallGoods.order_by desc" @click='setOrder' :class="order=='MallGoods.order_by desc'?'tabli on':'tabli'"><span>默认</span></div>
 <div data-order="price"  @click='setOrder'  :class="(order=='MallGoods.price'||order=='MallGoods.price desc')?'tabli on':'tabli'"><span>价格</span></div>
 <div data-order="MallGoods.order_count desc" @click='setOrder'  :class="order=='MallGoods.order_count desc'?'tabli on':'tabli'"><span>销量</span></div>
 <div data-order="MallGoods.id desc" @click='setOrder'  :class="order=='MallGoods.id desc'?'tabli on':'tabli'"><span>最新上架</span></div>
</div>

 
 <div class="goodslist" v-for="data in listData">
 <div class="goodsitem">
  <router-link :to="{ name: 'goods', params: { id: data.id }}" >
    <img mode="widthFix" :src='data.default_img+"?imageView2/1/w/360/h/360"'/>
    <div class='goods_name'>{{data.goods_name}}</div>
     <div class='price'>
      <span class="s_left">{{data.price}}</span>
      <img src='/pages/shop/images/addtocart.png' class='ico s_right'/>
      <div class='clear'></div>
     </div>
  </router-link>
 </div>
</div>  
 
    


</div>
